package com.lile.collection;

import java.util.LinkedList;

public class MyStack {

	private LinkedList<Object> link;

	public MyStack() {
		link = new LinkedList<Object>();
	}

	public void add(Object obj) {
		link.addFirst(obj);
	}

	public Object get() {
		// return link.getFirst();
		return link.removeLast();
	}

	public boolean isEmpty() {
		return link.isEmpty();
	}
}
